package com.origin.grid.framework.modules.message.entity.dos;

import com.origin.grid.framework.modules.message.entity.enums.MessageSendClient;
import com.origin.grid.framework.modules.message.entity.enums.RangeEnum;
import com.origin.grid.framework.mybatis.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;


/**
 * 管理段发送消息对象
 *
 * @author lili
 */

@Data
@TableName("li_message")
@Schema(name = "消息")
public class Message extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(name = "标题")
    private String title;

    @Schema(name = "内容")
    private String content;

    /**
     * @see RangeEnum
     */
    @Schema(name = "发送范围")
    private String messageRange;

    /**
     * @see MessageSendClient
     */
    @Schema(name = "发送客户端 商家或者会员")
    private String messageClient;

    @TableField(exist = false)
    @Schema(name = "发送指定用户id")
    private String[] userIds;

    @TableField(exist = false)
    @Schema(name = "发送指定用户名称")
    private String[] userNames;
}